﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RealWorld
{
    /// <summary>
    /// The 'Director' class
    /// know the constuction logic, the logic is stable
    /// </summary>
    class Shop
    {
        /// <summary>
        /// Builder uses a complex series of steps
        /// </summary>
        /// <param name="vehicleBuilder"></param>
        public void Construct(VehicleBuilder vehicleBuilder)
        {

            vehicleBuilder.BuildFrame();

            vehicleBuilder.BuildEngine();

            vehicleBuilder.BuildWheels();

            vehicleBuilder.BuildDoors();

        }

    }
}
